Analytics SDK Integration Guide
Follow these steps to integrate our analytics SDK into your web application.
Quick Start
Add the following script tag to your HTML file, just before the closing </body> tag:
<script type="module" src="https://analytics_arlink.ar.io/browser.js"
data-process-id="YOUR_PROCESS_ID"
data-track-url-hashes="true"
data-debug="true"></script>
Configuration Options
The SDK supports the following configuration attributes:
- data-process-id: Your unique process ID (required)
- data-track-url-hashes: Set to "true" to track URL hash changes (optional)
- data-debug: Set to "true" to enable debug logging in console (optional)
Best Practices
- Always place the script tag just before the closing
</body>tag for optimal page loading - Replace
YOUR_PROCESS_IDwith your actual process ID spawned in Arlink - Enable debug mode during development and disable it in production
Complete Example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Your Website</title>
</head>
<body>
<!-- Your website content here -->
<!-- Analytics SDK Implementation -->
<script type="module" src="https://analytics_arlink.ar.io/browser.js"
data-process-id="YOUR_PROCESS_ID"
data-track-url-hashes="true"
data-debug="true"></script>
</body>
</html>
About Us
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam in dui mauris. Vivamus hendrerit arcu sed erat molestie vehicula. Sed auctor neque eu tellus rhoncus ut eleifend nibh porttitor.
Our Features
- Feature 1: Amazing functionality
- Feature 2: Incredible performance
- Feature 3: Outstanding design